import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import PatientList from '../components/patientList.vue'
import BasicInfor from '../components/BasicInfo.vue'
import BiopsyPath from '../components/BiopsyPath.vue'

Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta:{
      title:"登录"
    }
  },
  {
    path: '/PatientList',
    name: 'PatientList',
    component: PatientList,
    meta:{
      title:"患者列表"
    }
  },
  {
    path: '/BasicInfor/:id',
    name: 'BasicInfor',
    component: BasicInfor,
    meta:{
      title:"基本信息"
    }
  },
  {
    path: '/BiopsyPath/:id',
    name: 'BiopsyPath',
    component: BiopsyPath,
    meta:{
      title:"活检病理"
    }
  },
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
